#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:一度关联方数
code:U_R1Num
tableName:
columnName:
groups:关联方
dependencies:EG_BBD
type:常用指标
dataSourceType:在线指标
description:
eof'''

'''
直接从返回的EG接口取出
R1Num :一度关联方数量
'''

def u_R1Num():
    null_type_list = ['', None, 'null', 'Null', 'NULL', '/', ' ']
    try:
        R1Num = EG_BBD['U_R1Num']

        if R1Num not in null_type_list:
            return float(R1Num)
        else:
            return u'缺失值'
    except:
        return u'缺失值'

result = u_R1Num()